package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 问题科目表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_paper")
public class ExamPaper implements Serializable {
    /**
     * 试卷id
     */
    @TableId(value = "expaid", type = IdType.AUTO)
    private Integer expaid;

    /**
     * 试卷名
     */
    @TableField(value = "epname")
    private String epname;

    /**
     * 试卷简介
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建者id
     */
    @TableField(value = "creator")
    private Long creator;


    /**
     * 状态：1=使用,2=弃用
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 创建时间
     */
    @TableField(value = "cretim")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cretim;

    /**
     * 参考小组
     */
    private Integer grouid;
    /**
     * 试卷总分
     */
    private Integer pscore;
}